package com.app.facerecognition.dto;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class UserListResponse {

    @SerializedName("success")
    private boolean success;

    @SerializedName("message")
    private String message;

    @SerializedName("code")
    private int code;

    @SerializedName("result")
    private Result result;

    @SerializedName("timestamp")
    private long timestamp;

    public static class Result {

        @SerializedName("records")
        private List<UserInfo.UserInfoResult> records; // Adjust the type based on the actual structure of "records"

        @SerializedName("total")
        private int total;

        @SerializedName("size")
        private int size;

        @SerializedName("current")
        private int current;

        // Other fields...

        // Getters and setters...

        public List<UserInfo.UserInfoResult> getRecords() {
            return records;
        }

        public void setRecords(List<UserInfo.UserInfoResult> records) {
            this.records = records;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getCurrent() {
            return current;
        }

        public void setCurrent(int current) {
            this.current = current;
        }

        // Other getters and setters...

        @Override
        public String toString() {
            return "Result{" +
//                    "records=" + records +
                    ", total=" + total +
                    ", size=" + size +
                    ", current=" + current +
                    // Add other fields as needed...
                    '}';
        }

    }

    // Getters and setters...

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }


    @Override
    public String toString() {
        return "UserListResponse{" +
                "success=" + success +
                ", message='" + message + '\'' +
                ", code=" + code +
                ", result=" + result +
                ", timestamp=" + timestamp +
                '}';
    }


}

